﻿<?php get_header(); ?>
<?php setPostViews(get_the_ID()); ?>
<div class="page_width">
	<div class="pagebox">
		<div class="article_left">
            <?php if(have_posts()):while(have_posts()):the_post(); ?>
            <!--<div class="position">
                <div class="positiontxt">
                <?php if(function_exists('wp_breadcrumbs')){wp_breadcrumbs();} ?>
                </div>
            </div>-->
			<div class="article_info clearfix">
				<div class="title">
					<h1><?php the_title(); ?></h1>
					<div>
						<!--<span class="category"><?php the_category('') ?></span>
						<span class="author"><?php the_author_posts_link(); ?></span>-->
						<span class="date"><?php the_time('Y-m-d') ?></span>
						<span class="view"><?php echo getPostViews(get_the_ID()); ?></span>
						<span class="comment"><?php comments_number('0','1','%');?></span>
					</div>
				</div>
				<!--<div class="viewinfo">
					浏览次数<span></span>
				</div>-->
				<div class="bdshare clearfix">
					<em>分享给好友：</em>
					<!-- Baidu Button BEGIN -->
					<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
						<a class="bds_qzone"></a>
						<a class="bds_tsina"></a>
						<a class="bds_tqq"></a>
						<a class="bds_renren"></a>
						<a class="bds_t163"></a>
						<span class="bds_more">更多</span>
					</div>
					<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6716224"></script>
					<script type="text/javascript" id="bdshell_js"></script>
					<script type="text/javascript">
						document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
					</script>
					<!-- Baidu Button END -->
				</div>
				<div class="clear"></div>
				<div class="article_body">
					<?php the_content(); ?>
				</div>
			</div>
			<div class="clear"></div>
			<!--<div class="pre_next">
				<?php if (get_previous_post()) { ?>
				<div class="nav-previous"><span class="gray">下一篇：</span>&nbsp;
					<?php previous_post_link ( '%link', '%title', TRUE ); ?>
				</div>
				<?php } if (get_next_post ()) { ?>
				<div class="nav-next"><span class="gray">上一篇：</span>&nbsp;
				<?php next_post_link ( '%link', '%title', TRUE ); ?>
				</div>
				<?php }?>
			</div>-->
			<div id="comments">
				<!--<div class="commentsnum">
				    全部评论：<?php comments_number('<span>0</span>条','<span>1</span>条','<span>%</span>条','','评论已关闭'); ?> 
                </div>-->
                <?php comments_template('',true); ?>
            </div>
		</div>
        <?php endwhile; endif;?>
        
        <?php get_sidebar(); ?>
    </div>
</div>
<?php get_footer(); ?>